Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(mev-builder-rs): Parallelize Proposer Schedule Relay Querying #203

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

refcell
Copy link

@refcell refcell commented Nov 12, 2023

Description

Addresses a small TODO comment in the mev-builder-rs crate to parallelize ProposerSchedule querying on the relays.

.collect::<FuturesUnordered<_>>();

// Stream the schedules for processing via the auction schedule.
while let Some((i, schedule)) = rx.next().await {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tx needs to be dropped after creating tasks and before processing the rx stream, otherwise it will never close since not all senders will be dropped.

Copy link
Owner

@ralexstokes ralexstokes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this looks nice! ill keep this in mind to revisit soon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants